<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex benben-position-layout flex flex-wrap align-center issueDetails_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center justify-between flex-sub issueDetails_fd0_0'      >
            <view   class='flex flex-wrap align-center issueDetails_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  issueDetails_fd0_0_c0_c0'    >&#xE794;</text>
</view>
    <view   class='flex flex-wrap align-stretch justify-center'      >
        <text class='issueDetails_fd0_0_c1_c0'  >问题详情</text>
</view>
    <view   class='flex flex-wrap align-center justify-end issueDetails_fd0_0_c0'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout issueDetails_flex_1"    >
        <text class='issueDetails_fd1_0'  >{{detailsData.title}}</text>
        <jyf-parser class='issueDetails_fd1_1'  :html="detailsData.body | richTextFormat"  >
        </jyf-parser>
</view>
        
<!---flex布局flex布局结束-->
    <view class="flex flex-wrap align-start justify-center benben-position-layout flex issueDetails_flex_2"    >
            <view   class='flex flex-wrap align-center justify-center issueDetails_fd2_0'   @tap.stop="selectFunc(1)"   >
        <image class='issueDetails_fd2_0_c0'  mode="aspectFit"  :src='STATIC_URL+"167.png"'></image>
<text class='issueDetails_fd2_0_c1'  >已解决</text>
</view>
    <view   class='flex flex-wrap align-center justify-center issueDetails_fd2_1'   @tap.stop="selectFunc(2)"   >
        <image class='issueDetails_fd2_0_c0'  mode="aspectFit"  :src='STATIC_URL+"168.png"'></image>
<text class='issueDetails_fd2_1_c1'  >未解决</text>
</view>

        </view>
<view :style="{height: '120rpx'}"  ></view>
    
    
        </view>
    </view>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        
        
        data(){
			return {"select_id":"1","select_type":[{"name":"内容看不懂","value":"1","image":""},{"name":"规则不合理","value":"2","image":""},{"name":"内容有错误","value":"3","image":""},{"name":"其他","value":"4","image":""}],"detailsData":{"aid":"","title":"","body":"","operationarticlecolumn_name":"","synopsis":"","img_url":"","is_essence":"","is_top":"","create_time":"","shipi":"","is_solve":""},"solve_id":"","id":"10"};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            let {id}=options
if (id !== undefined) this.id = id
this.getDetailsFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //选择解决未解决
                async selectFunc(id){
                       this.solve_id = id;
    if( this.solve_id=='1'){
                            this.$message.info('已解决');
    }
    else{
                            this.$message.info('未解决');
    }
    //请求方法
    //数据验证
    
  let data64de029e896de = await this.$api.dbGet(global.apiUrls.post64de029e896de, {
    is_solve:this.solve_id,aid:this.id
  });
  if(!data64de029e896de) return
  if (data64de029e896de.data.code != 1) {
    this.$message.info(data64de029e896de.data.msg);
    return
  } 
  
  
  
                setTimeout(()=>{
                    this.$urouter.navigateBack(1);
      },500)
                },
                //获取详情
                async getDetailsFunc(){
                        //请求方法
    //数据验证
    
  let datadetailsData = await this.$api.get(global.apiUrls.post638181d05a486, {
    aid:this.id
  });
  
  if (datadetailsData.data.code != 1) {
    this.$message.info(datadetailsData.data.msg);
    return
  } 
  let infodetailsData = datadetailsData.data;
  this.detailsData = infodetailsData.data
  
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:rgba(255, 255, 255, 1);background-size: 100% auto;
        }
    .issueDetails_flex_0{
        background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .issueDetails_fd0_0_c1_c0{
        font-size:36rpx;font-weight:500;color:#333;line-height:88rpx;
    }
    .issueDetails_fd0_0_c0_c0{
        font-size:36rpx;color:#333;
    }
    .issueDetails_fd0_0_c0{
        width:120rpx;height:88rpx;
    }
    .issueDetails_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;
    }
    .issueDetails_flex_1{
        padding:32rpx 32rpx 0rpx 32rpx;
    }
    ::v-deep .issueDetails_fd1_1{
        width:100%;
    }
    .issueDetails_fd1_0{
        margin:0rpx 0rpx 24rpx 0rpx;color:#333;font-size:28rpx;font-weight:600;
    }
    .issueDetails_flex_2{
        width:750rpx;height:120rpx;overflow:hidden;z-index:10;bottom:calc(0rpx + var(--window-bottom));
    }
    .issueDetails_fd2_1_c1{
        color:#FF5050;font-size:28rpx;font-weight:400;line-height:40rpx;
    }
    .issueDetails_fd2_1{
        background:rgba(255, 237, 237, 1);padding:12rpx 32rpx 12rpx 32rpx;border-radius:46rpx 46rpx 46rpx 46rpx;background-size:100% auto;width:307rpx;height:72rpx;
    }
    .issueDetails_fd2_0_c1{
        color:#3090FF;font-size:28rpx;font-weight:400;line-height:40rpx;
    }
    .issueDetails_fd2_0_c0{
        width:32rpx;height:32rpx;margin:0rpx 16rpx 0rpx 0rpx;
    }
    .issueDetails_fd2_0{
        background:rgba(234, 244, 255, 1);padding:12rpx 32rpx 12rpx 32rpx;border-radius:46rpx 46rpx 46rpx 46rpx;width:307rpx;height:72rpx;margin:0rpx 24rpx 0rpx 0rpx;
    }
</style>